﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace App.Validate
{
    [AttributeUsage(AttributeTargets.Property, AllowMultiple = true)]
    public abstract class ValidatorElementAttribute : Attribute
    {
        public string Name { get; private set; }
        public ValidatorElementAttribute(string name)
        {
            Guard.ArgumentNotNullOrEmpty(name, "name");
            this.Name = name;
        }
        public abstract Validator CreateValidator();
    }
}